/*
 * 该函数用于计算微博表所能输入的剩余字数
 * coded by: zuoxin
 * date: 2012-3-26
 * */

function recount(counter,button,content){       
   var maxlen=140;       
   var current = maxlen-content.val().length;       
   counter.html(current);        
 
   if(current< 0 || current>maxlen){           
	   counter.css('color','#D40D12');           
	   button.attr('disabled','disabled');       
   }       
   else           
	   button.removeAttr('disabled');        
   if(current<10)           
	   counter.css('color','#D40D12');        
   else if(current<20)           
	   counter.css('color','#5C0002');        
   else           
	   counter.css('color','#cccccc');    
}  